<?php
class BoundFormularioAccederAlSistema {
    public function __construct() { ?>
        <form id="iniSes">
                <br><br><br><table>
                    <tr>
                        <td>
                            <input type="button" value="¿Eres alumno?" class="required" onclick="ajax('controllers/CtlAccederAlSistema.php', 'frmAlum', 'vacio', 'login')">
                        </td>
                        <td>
                            <input type="button" value="Recuperar contraseña" class="required" onclick="ajax('controllers/CtlAccederAlSistema.php', 'frmRecPass', 'vacio', 'login')">
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            Usuario: 
                            <input type="text" class="required" name="user" id="user" onchange="$('#errorSess').empty()">
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            Contraseña: 
                            <input type="password" class="required" name="pass" id="pass" onchange="$('#errorSess').empty()">
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <input type="button" class="required" value="Iniciar Sesión" onclick="ajax('controllers/CtlAccederAlSistema.php', 'start', 'iniSes', 'menuSes')">
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <div id="errorSess">
                            </div>
                        </td>
                    </tr>
                </table>
        </form>
    <?}
}

new BoundFormularioAccederAlSistema();
?>